package com.odais.AE_Handler;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set;

public class EnginePopulation
{
// ===========================================================
// Constants
// ===========================================================

	public static final String ENGINE_POPULATION_TABLE = "Table";
	public static final String ENGINE_POPULATION_PEOPLE = "People";
	public static final String ENGINE_POPULATION_RESERVATIONBOXLEFTPANEL = "ReservationBoxLeftPanel";
	public static final String ENGINE_POPULATION_RESERVATIONBOXRIGHTPANEL = "ReservationBoxRightPanel";
	public static final String ENGINE_POPULATION_RESERVATIONENTITY = "ReservationEntity";

// ===========================================================
// Fields
// ===========================================================
	private HashMap<String, ArrayList<?>> populationList;

// ===========================================================
// Constructors
// ===========================================================
	public EnginePopulation()
	{
		populationList = new HashMap<String, ArrayList<?>>();		
	}

// ===========================================================
// Getter & Setter
// ===========================================================
	
	public void addList(String name, ArrayList<?> newList)
	{
		this.populationList.put(name, newList);
	}

	public ArrayList<?> getList(String name)
	{
		return this.populationList.get(name);
	}

	public Set<String> getListNames()
	{
		return this.populationList.keySet();
	}
	
	public int getNumberOfLists()
	{
		return this.populationList.size();
	}

// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================

}